package com.leetroll.common.entity;


import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("public.cart")
@NoArgsConstructor
public class Cart extends SuperEntity {

    //所属 userId
    private Long userId;
    //所属 itemId
    private Long itemId;

    public Cart(Long userId, Long itemId) {
        this.itemId = itemId;
        this.userId = userId;
    }
}
